import service from '../request'

// 获取扇形
export function getSector() {
  return service({
    url: '/Draw/DrawSector1/geojson',
    method: 'get',
  })
}

// 新增扇形
export function postAddSector(params) {
  return service({
    url: '/Draw/DrawSector1',
    method: 'post',
    data: params,
  })
}

export function putSector(params) {
  return service({
    url: `/Draw/DrawSector1`,
    method: 'put',
    data: params,
  })
}
